package com.lovo.service.impl;

import com.lovo.bean.UserInfoBean;
import com.lovo.dao.IUserInfoDAO;
import com.lovo.service.IUserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bdk
 * @since 2021-03-10
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<IUserInfoDAO, UserInfoBean> implements IUserInfoService {
    @Resource
    private IUserInfoDAO userInfoDAO;
    @Override
    public UserInfoBean selectByUserName(String userName) {
//        QueryWrapper wrapper = new QueryWrapper();
//        wrapper.eq("user_name",userName);
//        return userInfoDAO.selectOne(wrapper);
        return userInfoDAO.selectByUserName(userName);
    }
}
